import scrapy


class Gamer520Spider(scrapy.Spider):
    name = "gamer520"
    # allowed_domains = ["gamer520.com"]
    # start_urls = ["https://gamer520.com"]

    async def start(self):
        yield scrapy.Request('https://www.gamer520.com/', method="GET")

    def parse(self, response):
        print(response.text)
        items = response.xpath("//h2[@class='entry-title']")
        for item in items:
            title = item.xpath("./@title/text()").get()
            print(title)
